package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhHolderVipNumMapper;
import com.laowang.project.system.domain.MyCyhHolderVipNum;
import com.laowang.project.system.service.MyCyhHolderVipNumService;

/**
 * 股东推荐会员数量Service业务层处理
 *
 * @author laowang
 * @date 2024-04-01
 */
@Service
public class MyCyhHolderVipNumServiceImpl implements MyCyhHolderVipNumService {
    @Autowired
    private MyCyhHolderVipNumMapper myCyhHolderVipNumMapper;

    /**
     * 查询股东推荐会员数量
     *
     * @param id 股东推荐会员数量ID
     * @return 股东推荐会员数量
     */
    @Override
    public MyCyhHolderVipNum selectMyCyhHolderVipNumById(Integer id) {
        return myCyhHolderVipNumMapper.selectMyCyhHolderVipNumById(id);
    }

    /**
     * 查询股东推荐会员数量列表
     *
     * @param myCyhHolderVipNum 股东推荐会员数量
     * @return 股东推荐会员数量
     */
    @Override
    public List<MyCyhHolderVipNum> selectMyCyhHolderVipNumList(MyCyhHolderVipNum myCyhHolderVipNum) {
        return myCyhHolderVipNumMapper.selectMyCyhHolderVipNumList(myCyhHolderVipNum);
    }

    /**
     * 新增股东推荐会员数量
     *
     * @param myCyhHolderVipNum 股东推荐会员数量
     * @return 结果
     */
    @Override
    public int insertMyCyhHolderVipNum(MyCyhHolderVipNum myCyhHolderVipNum) {
        return myCyhHolderVipNumMapper.insertMyCyhHolderVipNum(myCyhHolderVipNum);
    }

    /**
     * 修改股东推荐会员数量
     *
     * @param myCyhHolderVipNum 股东推荐会员数量
     * @return 结果
     */
    @Override
    public int updateMyCyhHolderVipNum(MyCyhHolderVipNum myCyhHolderVipNum) {
        return myCyhHolderVipNumMapper.updateMyCyhHolderVipNum(myCyhHolderVipNum);
    }

    /**
     * 批量删除股东推荐会员数量
     *
     * @param ids 需要删除的股东推荐会员数量ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhHolderVipNumByIds(Integer[] ids) {
        return myCyhHolderVipNumMapper.deleteMyCyhHolderVipNumByIds(ids);
    }

    /**
     * 删除股东推荐会员数量信息
     *
     * @param id 股东推荐会员数量ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhHolderVipNumById(Integer id) {
        return myCyhHolderVipNumMapper.deleteMyCyhHolderVipNumById(id);
    }

    @Override
    public Integer selectMyCyhHolderVipNumListOrder(MyCyhHolderVipNum myCyhHolderVipNum) {
        return myCyhHolderVipNumMapper.selectMyCyhHolderVipNumListOrder(myCyhHolderVipNum);
    }

    @Override
    public List selectMyCyhHolderVipNumListDetail(MyCyhHolderVipNum myCyhHolderVipNum) {
        return myCyhHolderVipNumMapper.selectMyCyhHolderVipNumListDetail(myCyhHolderVipNum);
    }
}
